package com.qf.service.Impl;

import com.qf.entity.Listing;
import com.qf.mapper.SellMapper;
import com.qf.service.SellService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * --- 机魂大悦 ---
 *
 * @author L
 * @date 2024/7/23
 * @desc
 */
@Service
public class SellServiceImpl implements SellService {
    @Autowired
    private SellMapper sellMapper;
    @Override
    public List<Listing> finAll(HashMap<String, String> map) {
        return sellMapper.findAll(map);
    }

    @Override
    public boolean delById(int id) {
        return sellMapper.delById(id);
    }

    @Override
    public boolean upDataMeasure(HashMap<String,String> map) {
        return sellMapper.upData(map);
    }

    @Override
    public boolean delMore(List<Integer> ids) {
        return sellMapper.delMore(ids);
    }

    @Override
    public boolean addFind(HashMap<String, String> map) {
        return sellMapper.addFind(map);
    }
}
